# source dircolors file
eval "$(dircolors ~/config_files/dircolors)"

# prompt - vcs info
zstyle ':vcs_info:*' enable git hg
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:*' stagedstr "%F{green}●" # default 'S'
zstyle ':vcs_info:*' unstagedstr "%F{red}●" # default 'U'
zstyle ':vcs_info:*' use-simple true
zstyle ':vcs_info:git+set-message:*' hooks git-untracked
zstyle ':vcs_info:git*:*' formats '[%b %c%u%F{6}]' # default ' (%s)-[%b]%c%u-' %F{6} colorize end bracket
zstyle ':vcs_info:git*:*' actionformats '[%b|%a%m%c%u]' # default ' (%s)-[%b|%a]%c%u-'


# Make completion:
# - Case-insensitive.
# - Accept abbreviations after . or _ or - (ie. f.b -> foo.bar).
# - Substring complete (ie. bar -> foobar).
# - use LS_COLORS to color dirs in tab completion
zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*:default' menu select=0
zstyle ':completion:*' list-dirs-first true
zstyle ':completion:*' list-colors "${(@s.:.)LS_COLORS}"
